import java.util.Scanner;

/**
 * @version 1.1.0 21 May 2014
 * @author Team Four
 * @review Leader
 */

public class clsCalculatorSimple {

	Double num1, num2;
	char operator;

	public static void main(String[] args) {
		clsCalculatorSimple cls = new clsCalculatorSimple();
		cls.input();
		cls.solve();
	}

	public void input() {
		Scanner scn = new Scanner(System.in);
		System.out.print("Enter 1: ");
		num1 = scn.nextDouble();
		System.out.print("Enter 2: ");
		num2 = scn.nextDouble();
		System.out.print("Enter operator: ");
		operator = scn.next().charAt(0);
	}

	public void solve() {
		if(operator == '+')
		System.out.print("Tong: "+(num1+num2));
		if(operator == '-')
		System.out.print("Hieu: "+(num1-num2));
		if(operator == '*')
		System.out.print("Tich: "+(num1*num2));
		else {
			if(num2!=0)
				System.out.print("Thuong: "+(num1/num2));
			else
				System.out.print("kg chia cho 0");
		}
	}

}